package basic;

public class Client extends MainClass {

    private static int currId = 0;
    private String name;
    private String surname;
    private int count = 0;

    public Client() {
        id = ++currId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    
    public int getCount() {
        return this.count;
    }

    public void incCount() {
        this.count++;
    }

    @Override
    public String toString() {

        return String.format("%4d %20s %20s %15d", this.getId(), this.name, this.surname, this.count);

    }

//    public static void main(String[] args) {
//        Client test = new Client();
//        test.setName("Dominik");
//        test.setSurname("Szczygiel");
//        System.out.println(test);
//        Client tak = new Client();
//        System.out.println(tak);
//    }
}
